package model

import (
	"gorm.io/gorm"
	"time"
)

type UCenterMember struct {
	ID         int            `json:"id"`
	Username   string         `json:"username"`
	Password   string         `json:"password"`
	Nickname   string         `json:"nickname"`
	Sex        int            `json:"sex"`
	Age        int            `json:"age"`
	Avatar     string         `json:"avatar"`
	Sign       string         `json:"sign"`
	IsDisabled int            `json:"is_disabled"`
	IsAdmin    int            `json:"is_admin"` // 1是普通用户 2是管理员
	CreatedAt  time.Time      `json:"created_at"`
	UpdatedAt  time.Time      `json:"updated_at"`
	DeletedAt  gorm.DeletedAt `gorm:"index" json:"deleted_at"`
}

func (UCenterMember) TableName() string {
	return "ucenter_member"
}
